package com.smxy.mall.dao;

import com.smxy.mall.entity.NewsCat;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface NewsCatDao extends JpaRepository<NewsCat,Object>, JpaSpecificationExecutor<NewsCat> {
    List<NewsCat> findByPid(Integer pid);  //根据pid查找分类
}
